/*
 *  nautilus-svn-console.h - Subversion extension for Nautilus
 * 
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU General Public
 *  License as published by the Free Software Foundation; either
 *  version 2 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Library General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public
 *  License along with this library; if not, write to the Free
 *  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 *  Author: Jack Xu Hong <jack.xu.hong@gmail.com>
 * 
 */
#ifndef NAUTILUS_SVN_CONSOLE_H_
#define NAUTILUS_SVN_CONSOLE_H_

#include <glib/gi18n-lib.h>

G_BEGIN_DECLS

#define NAUTILUS_TYPE_SVN_CONSOLE	     (nautilus_svn_console_get_type ())
#define NAUTILUS_SVN_CONSOLE(obj)	     (G_TYPE_CHECK_INSTANCE_CAST ((obj), NAUTILUS_TYPE_SVN_CONSOLE, NautilusSvnConsole))
#define NAUTILUS_SVN_CONSOLE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_SVN_CONSOLE, NautilusSvnConsoleClass))
#define NAUTILUS_IS_SVN_CONSOLE(obj)	     (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NAUTILUS_TYPE_SVN_CONSOLE))
#define NAUTILUS_IS_SVN_CONSOLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), NAUTILUS_TYPE_SVN_CONSOLE))

typedef struct _NautilusSvnConsole        NautilusSvnConsole;
typedef struct _NautilusSvnConsoleClass   NautilusSvnConsoleClass;

struct _NautilusSvnConsole {
	GtkDialog parent;
};

struct _NautilusSvnConsoleClass {
	GtkDialogClass parent_class;

	/* signals */
	void (*failed) (NautilusSvnConsole *console);
};

GType nautilus_svn_console_get_type (void);

NautilusSvnConsole *nautilus_svn_console_new (void);

void nautilus_svn_console_check_cancelled_cb (NautilusSvnConsole *console);

G_END_DECLS

#endif /*NAUTILUS_SVN_CONSOLE_H_*/
